package com.ruan.service;

import com.ruan.entity.AttrKey;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.entity.R;

import java.util.List;

/**
* @author 59499
* @description 针对表【attr_key】的数据库操作Service
* @createDate 2023-09-08 23:51:41
*/
public interface AttrKeyService extends IService<AttrKey> {

    R<Void> addAttributeKey(AttrKey attrKey);

    R<List<AttrKey>> getAttributeKey(Integer categoryId);

    R<Void> deleteAttributeKeyById(Integer id);

    R<String[]> getAttrKeyOptionsById(Integer id);

    R<Void> deleteAttrKeyOptionByIndex(Integer categoryId, Integer attrKeyId, Integer index);
}
